<template>
  <div class="cart-list">
    <cart-list-item
        v-for="(item, index) in cartList"
        :key="index"
        :product="item"
    />
  </div>
</template>

<script>

import {mapGetters} from "vuex";
import CartListItem from "./CartListItem";

export default {
  name: "CartList",
  components: {CartListItem},
  computed: {
    ...mapGetters(['cartList'])
  }
}
</script>

<style scoped>
  .cart-list {
    margin: 44px 0 89px;
  }
</style>